package com.yz.promotion.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yz.model.vo.promotion.PromotionVo;
import com.yz.model.entity.promotion.PromotionCode;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created With IntelliJ IDEA.
 * Descriptions:
 * <p>
 * User:Mr.Du
 * Date:2024/3/25
 * Time:16:18
 */
@Service
public interface PromotionService extends IService<PromotionCode> {

    void createPromotionCode(Long uid);

    PromotionVo checkPromotionCode(Long uid, String codes);

    List<PromotionVo> getPromotionCode(Long uid, Integer status, Integer type);

    void usePromotionCode(Long uid, String codes);
}
